<?php
   require_once "model/Model.php";
   require_once "../common/connDB.php";
   class OrderModel extends Model{
     
   	 public function __construct(){
        parent::__construct();
   	 }
     public function getOrderList(){
      $sql="select * from orders";
      $data=$this->conn->query($sql);
     	return $data;
     }
     public function delOrderInfo(){
          $oid=$_GET['oid'];
          $sql="delete from orders where oid={$oid}";
          $result=$this->conn->query($sql);//写入数据库
          
          return $result;
        }
     
   }
?>